package com.th.supcom.pds.impl.manager;

import java.util.List;
import java.util.Map;

import com.th.supcom.pds.domain.pojo.InpPhamApplyMaster;
import com.th.supcom.pds.domain.vo.InpPhamApplyMasterVO;

/**
 * InpPhamApplyMaster 管理接口.
 * 
 * 住院摆药请领单.
 */
public interface InpPhamApplyMasterManager
{
    /**
     * 查询护理单元在当前药房有未执行请领明细的请领主单据
     * 
     * @param nurseUnitCode
     * @param dispensary
     */
    public List <InpPhamApplyMaster> findApplyMasterByNurseCodeAndDispensary (InpPhamApplyMasterVO inpPhamApplyMasterVO);

    /**
     * 通过主键ID查询表记录.
     * 
     * @param id 主键ID
     * @return 返回InpPhamApplyMaster
     */
    public InpPhamApplyMaster getInpPhamApplyMasterByID (Long id);

    /**
     * 获得当前表的序列号.
     * 
     * @return Long 当前序列号.
     */
    public Long getInpPhamApplyMasterSeq ();

    /**
     * 通过传输对象对应值查询表记录.
     * 
     * @param inpPhamApplyMaster 传输对象.
     * @return InpPhamApplyMaster 结果对象.
     */
    public List <InpPhamApplyMaster> findInpPhamApplyMasterListByExample (InpPhamApplyMaster inpPhamApplyMaster);

    /**
     * 通过传输对象对应值查询表记录条数.
     * 
     * @param inpPhamApplyMaster 传输对象.
     * @return 条数.
     */
    public int findInpPhamApplyMasterCountByExample (InpPhamApplyMaster inpPhamApplyMaster);

    /**
     * 通过传输对象对应值查询表记录.
     * 
     * @param params Map入参对象.
     * @return InpPhamApplyMaster 结果对象集.
     */
    public List <InpPhamApplyMaster> findInpPhamApplyMasterListByMap (Map <String, Object> params);

    /**
     * 通过传输对象对应值查询表记录并且进行分页.
     * 
     * @param params Map入参对象.
     * @param offset 起始页.
     * @param limit 结束页.
     * @return InpPhamApplyMaster 结果对象集.
     */
    public List <InpPhamApplyMaster> findInpPhamApplyMasterPagingByMap (Map <String, Object> params, Integer offset, Integer limit);

    /**
     * 通过传输对象对应值查询表记录并且进行分页统计.
     * 
     * @param params Map入参对象.
     * @return Integer 查询结果总条数.
     */
    public Integer findInpPhamApplyMasterCountByMap (Map <String, Object> params);

    /**
     * 通过主键ID更新表记录.
     * 
     * @param inpPhamApplyMaster 要更新的传输对象
     * @return 返回更新条数
     */
    public int modifyInpPhamApplyMaster (InpPhamApplyMaster inpPhamApplyMaster);

    /**
     * 通过主键ID更新表记录，字段有值才更新.
     * 
     * @param inpPhamApplyMaster 更新的传输对象.
     * @return 更新条数.
     */
    public int modifyInpPhamApplyMasterByExample (InpPhamApplyMaster inpPhamApplyMaster);

    /**
     * 通过VO对象插入记录.
     * 
     * @param inpPhamApplyMaster 要插入的传输对象
     */
    public Long addInpPhamApplyMaster (InpPhamApplyMaster inpPhamApplyMaster);

    /**
     * 通过主键ID删除表记录.
     * 
     * @param id 要删除的表的主键ID
     * @return 删除条数
     */
    public int removeInpPhamApplyMasterByID (Long id);

    /**
     * 通过传入的Map参数删除表记录.
     * 
     * @param params 带条件的传入参数.
     * @return 删除条数.
     */
    public int removeInpPhamApplyMasterByMap (Map <String, Object> params);

    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, TH Supcom Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";
}